
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       E X T E R N A L   C O M M A N D S   E X A M P L E 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E x t e r n a l C o m m a n d s   =   1 
 
 S t o p 
 
 
 
 L a b e l   E v e n t _ E x t e r n a l C o m m a n d s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E x t r a c t   f i r s t   w o r d 
 
 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   0 ) 
 
 	 	 C a s e   " " 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " B e e p " 
 
 	 	 	 B e e p   4 4 0   3 0 0 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " B e e p _ M u l t i p l e " 
 
 	 	 	 E x e c B e e p M u l t i p l e 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - -   C o m m a n d s   w i t h   p a r a m e t e r s 
 
 	 	 C a s e   " S a y " 
 
 	 	 	 T T S   S p e a k   M i d ( C F E 1 ,   5 ) 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - -   U n r e c o g n i z e d   c o m m a n d 
 
 	 	 C a s e E l s e 
 
 	 	 	 W a i t   S e c o n d s   0 . 5 
 
 	 	 	 B e e p   2 0 0   5 0 0 
 
 	 	 	 P r i n t   " U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t 
 
 	 	 	 W a i t   S e c o n d s   0 . 5 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ E x t e r n a l C o m m a n d s )   =   " " 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c B e e p M u l t i p l e 
 
 	 F o r   v 1   =   1   T o   3 
 
 	 	 B e e p   8 8 0   4 0 0 
 
 	 	 W a i t   S e c o n d s   0 . 5 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   v 1 
 
 ' E X E C   D e s t X   =   1 2 
 
 